package com.um.jdy.common.finance.service;

import com.um.jdy.common.finance.enums.FinancialEnum;
import com.um.springboot.starter.orm.service.BaseEntityService;
import com.um.jdy.common.finance.entity.po.PlatformBill;

/**
 * 服务接口：平台流水表
 */
public interface PlatformBillService extends BaseEntityService<PlatformBill> {

    /**
     * 保存账单
     * @param comId
     * @param outTradeNo
     * @param orderNo
     * @param amount
     * @param type
     * @param event
     * @param status
     * @return
     */
    PlatformBill addBill(String comId, String outTradeNo, String orderNo, Integer amount, FinancialEnum.IncomeOrExpend type,
                                FinancialEnum.PlatformBillEvent event, FinancialEnum.BillStatus status);
}
